API Browser

Class

MapEntry<K, V>

class MapEntry<K, V>

Namespace: System.Collections.Generic
Assembly: Raven.Core.dll
Source file: MapEntry.rvn

Inheritance: Object → MapEntry<K, V>

A reusable live key locator, not a borrowed storage reference or snapshot. Retains the map and key. Each operation resolves current state through the map's comparer. No atomicity, synchronization or rollback is provided. Keys must obey the map's stability requirements.

Constructors

1 item
MapEntry(map: IDictionary<K, V>, key: K) <summary>Creates a live locator without reading or changing the map.</summary> <param name="map">The mutable map retained by this locator.</param> <param name="key">The key used fo…

Properties

2 items
Key: K <summary>Gets the supplied lookup key, which need not be the stored canonical key.</summary>
Value: V <summary>Gets the current value; a missing key follows the dictionary's indexer exception contract.</summary>

Methods

9 items
AndModify(transform: V -> V) -> MapEntry<K, V> <summary>Transforms a present value once and writes back the result.</summary> <param name="transform">A synchronous replacement callback; skipped when absent.</param> <returns>Thi…
Equals(obj: object?) -> bool Determines whether the specified object is equal to the current object. Inherited from Object.Equals
Find() -> Optional<V> <summary>Looks up the current value, preserving the distinction between absence and a present null.</summary> <returns>Some for a present key; otherwise None.</returns>
GetHashCode() -> int Serves as the default hash function. Inherited from Object.GetHashCode
GetType() -> Type Gets the System.Type of the current instance. Inherited from Object.GetType
OrInsert(value: V) -> V <summary>Inserts the supplied value only when the key is absent.</summary> <param name="value">The eagerly evaluated fallback value.</param> <returns>The existing or inserted value…
OrInsertWith(factory: () -> V) -> V <summary>Calls the factory once only when absent, then inserts if still absent.</summary> <param name="factory">A synchronous factory; may reenter the map.</param> <returns>The cur…
Set(value: V) -> MapEntry<K, V> <summary>Inserts or replaces the value and returns this locator.</summary> <param name="value">The value to store.</param> <returns>This reusable locator.</returns>
ToString() -> string? Returns a string that represents the current object. Inherited from Object.ToString

Operators

1 item
Static extension member: implicit conversion<T>(value: MapEntry<K, V>?) -> Optional<MapEntry<K, V>> Converts a nullable reference to `Some`, or to `None` when it is `null`. Extension from OptionalExtensions1<T>.op_Implicit